#pragma once

#include <QDialog>
#include <QFormLayout>
#include <QHBoxLayout>
#include <QHostAddress>
#include <QLabel>
#include <QLineEdit>
#include <QPair>
#include <QPushButton>
#include <QVBoxLayout>

class AddressDialog : public QDialog {
    Q_OBJECT
private:
    QLabel* title_label;
    QLineEdit *ip_input, *port_input;
    QPushButton *ok_button, *cancel_button;

    QFormLayout* form;
    QHBoxLayout* button_layout;
    QVBoxLayout* widget_layout;

public:
    explicit AddressDialog(QWidget* parent);

    QPair<QString, int> getAddress();
};
